/****************************************************************
 * Steuerung.c													*
 * Hardware: CMPS10, BMP085, NEO-06								*
 * Created: 30.12.2013 14:04:58									*
 * Author: Peter Gantner										*
 ***************************************************************/

 #define F_CPU 12000000UL
 #include "GPS.h"
 #include "cmps10.h"
 #include "i2c_master.h"
 #include "bmp085.h"
 #include "GSM.h"


int main(void)
{
	uart_init();
	gpsinit();
	
	
	while(1)
	{
	DDRA=0x00;
	DDRC=0xFF;
	PORTA=0xFF;

	
	if((~PINA)&0x01)
	{
		uart_puts("ATD06604852081;\r");
		
	}
	
	if((~PINA)&0x02)
	{
		getgps();
		
	}
	
	}
}
